﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class ChiTietHoaDonDTO
    {
        #region 1   -   Attributes

        private int _iD;
       
        private int _maSanPham;

        private int _maHoaDon;

        private long _donGia;

        private int _soLuongSanPham;

        #endregion

        #region 2   -   Properties

        public int ID
        {
            get { return _iD; }
            set { _iD = value; }
        }

        public int MaSanPham
        {
            get { return _maSanPham; }
            set { _maSanPham = value; }
        }

        public int MaHoaDon
        {
            get { return _maHoaDon; }
            set { _maHoaDon = value; }
        }

        public long DonGia
        {
            get { return _donGia; }
            set { _donGia = value ; }
        }

        public int SoLuongSanPham
        {
            get { return _soLuongSanPham; }
            set { _soLuongSanPham = value; }
        }

        #endregion

        #region 3   -   Constructors

        public ChiTietHoaDonDTO(int masanpham, int mahoadon, long dongia, int soluongsanpham)
        {
            MaSanPham = masanpham;
            MaHoaDon = mahoadon;
            DonGia = dongia;
            SoLuongSanPham = soluongsanpham;
        }

        #endregion
    }
}
